package com.example.demo.dto;

import com.example.demo.model.Item;
import lombok.Data;

@Data
public class ItemDTO {
    private String name;
    private String item;
    private String from;

    public ItemDTO() {}

    public ItemDTO(Item item, String from) {
        this.name = item.getName();
        this.item = item.getItem();
        this.from = from;
    }

    public ItemDTO(String name, String item, String from) {
        this.name = name;
        this.item = item;
        this.from = from;
    }
}
